package cn.it.ygh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.it.ygh.mapper.HouseEnsureMapper;
import cn.it.ygh.pojo.Apply;
import cn.it.ygh.pojo.Order;
import cn.it.ygh.service.HouseEnsureService;

@Service(value = "HouseEnsureService")
@Transactional
public class HouseEnsureServiceImpl implements HouseEnsureService{
	
	@Autowired
	private HouseEnsureMapper houseEnsureMapper;
	

	public List<Order> getOrderData(int pageStart,int pageSize,String agentAccount){
		return houseEnsureMapper.getOrderData(pageStart,pageSize,agentAccount);
	}
	
	public int getOrderTotal(String agentAccount){
		return houseEnsureMapper.getOrderTotal(agentAccount);
	}
	
	
	
	public List<Apply> getApplyData(int pageStart,int pageSize,String agentAccount){
		return houseEnsureMapper.getApplyData(pageStart, pageSize,agentAccount);
	}
	
	public int getApplyTotal(String agentAccount){
		return houseEnsureMapper.getApplyTotal(agentAccount);
	}
	
	
	
}
